package hlhj.fhp.tvlib.activitys

import android.app.Activity
import android.graphics.Color
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.widget.RelativeLayout
import android.widget.Toast
import com.tenma.ventures.base.TMActivity
import com.tenma.ventures.bean.utils.TMSharedPUtil
import hlhj.fhp.tvlib.R

abstract class BaseAty : TMActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(getContentId())
       /* val loTittle = findViewById<RelativeLayout>(R.id.loTittle)
        if (null!=loTittle){
            Log.e("infoo","判断颜色${this.packageName}")
            if (null!=TMSharedPUtil.getTMThemeColor(this)&&TMSharedPUtil.getTMThemeColor(this).length>0){
                Log.e("infoo","判断颜色${this.packageName}")
                loTittle.setBackgroundColor(Color.parseColor(TMSharedPUtil.getTMThemeColor(this)))
            }
        }*/

    }

    protected abstract fun getContentId(): Int
}

